<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <title>河北省药品集中采购平台</title>
    <link rel="stylesheet" href="css/index_new.css">
    <style>
        .l_notice {
            position: absolute;
            left: 16px;
            bottom: 16px;
            background-color: rgba(28, 86, 169, .3);
            width: 340px;
            z-index: 999;
            border-radius: 2px;
        }

        .l_notice .l_title {
            padding: 0 0 0 10px;
            border-bottom: 1px solid rgba(255, 255, 255, .2);
            height: 39px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .l_notice .l_title h3 {
            font-weight: bold;
            font-size: 14px;
            color: #fff;
        }

        .l_notice .l_title span {
            display: inline-block;
            width: 35px;
            height: 35px;
            cursor: pointer;
            line-height: 35px;
            text-align: center;
            font-size: 12px;
            background: url("${_baseurl}/res/images/home/home_close.png") no-repeat center center / 12px 12px;
        }

        .l_notice_con {
            padding: 16px 10px 8px;
        }

        .l_notice_con li:before {
            width: 6px;
            height: 6px;
            display: inline-block;
            content: "";
            position: absolute;
            top: 6px;
            left: 0;
            background-color: #fff;
            border-radius: 8px;
        }

        .l_notice_con li {
            padding-left: 12px;
            position: relative;
            margin-bottom: 8px;
        }

        .l_notice_con li p {
            color: #fff;
            font-size: 14px;
            line-height: 18px;
            cursor: pointer;
            white-space: nowrap;
            font-weight: bold;
            width: 100%;
            text-overflow: ellipsis;
            overflow: hidden;
        }

        .l_notice_con li span {
            color: rgba(255, 255, 255, .6);
            font-size: 12px;
            line-height: 14px;
        }

        .notice_dia {
            padding: 32px 24px;
            display: none;
        }

        .notice_title {
            font-size: 24px;
            font-weight: bold;
            text-align: center;
            margin-bottom: 24px;
        }

        .notice_tip {
            color: #999;
            margin-bottom: 16px;
            text-align: center;
            font-size: 12px;
        }

        .notice_tip span {
            display: inline-block;
            margin-right: 10px;
        }

        .notice_con p {
            margin-bottom: 8px;
            line-height: 24px;
        }

        .layui-layer .layui-layer-btn {
            font-size: 14px;
            padding: 0 12px 10px;
        }

        .layui-layer .layui-layer-btn a {
            height: 38px;
            line-height: 38px;
        }

        .link {
            position: relative;
        }

        .link-box {
            display: none;
            position: absolute;
            right: 100%;
            top: -1px;
            padding-right: 20px;
        }

        .link:hover .link-box {
            display: block;
        }

        .link-box::before {
            content: "";
            position: absolute;
            right: 0;
            top: 50%;
            width: 0;
            height: 0;
            margin-top: -10px;
            border-width: 10px;
            border-style: solid;
            border-color: transparent;
            border-left-color: #fff;
        }

        .link-box section {
            display: flex;
            border-radius: 5px;
            background: #fff;
            padding: 13px 0;
        }

        .link-box>* {
            text-align: center;
        }

        .link-box a {
            flex: 1;
            width: 108px;
            font-size: 12px;
            padding-top: 60px;
            background-size: 60px;
            background-repeat: no-repeat;
            background-position: center top;
        }

        .link-box a:first-of-type {
            background-image: url('img/hs/s.png');
        }

        .link-box a:first-of-type:hover {
            background-image: url('img/hs/s_h.png');
        }

        .link-box a:last-of-type {
            background-image: url('img/hs/hs.png');
            border-left: 1px solid rgba(0, 0, 0, 0.1);
        }

        .link-box a:last-of-type:hover {
            background-image: url('img/hs/hs_h.png');
        }

        .link-box p {
            font-size: inherit;
            margin-bottom: 0;
            color: rgba(0, 0, 0, 0.65);
        }
    </style>
</head>

<body>
    <div class="wap">
        <div class="header-bg">
            <div class="header">
                <p class="logo">
                    河北省药品集中采购平台
                </p>
                <p class="p_r">
                    <i>平台服务支持电话：</i>
                    <span>400-618-2090</span>
                </p>
            </div>
        </div>
        <div class="banner-wrapper" id="noticeList">

            <!--  底下代码一定要放在 <div class="banner-wrapper">内 -->
            <div class="l_notice" id="notice">
                <div class="l_title">
                    <h3>通知公告</h3>
                    <span id="notice_close"></span>
                </div>
                <div class="l_notice_con">
                    <ul id="noticeUl">

                    </ul>
                </div>
            </div>

            <div class="banner_main">
                <div class="banner_img">
                    <img src="${_baseurl}/res/images/index/hebei/fjmap1.png" alt="">
                </div>
                <div class="select-type-bg">
                    <ul class="select-type">
                        <li>
                            <a href="${_baseurl}/comm/loginskip?type=91" target="_blank" class="clearfix">
                                <img src="${_baseurl}/res/images/index/hebei/11.png" alt="">
                                <div class="box">
                                    <p>CA系统</p>
                                    <span>进入平台</span>
                                </div>
                            </a>
                        </li>
                        <li>
                            <a href="${_baseurl}/comm/loginskip?type=92" target="_blank" class="clearfix">
                                <img src="${_baseurl}/res/images/index/hebei/22.png" alt="">
                                <div class="box">
                                    <p>申报系统</p>
                                    <span>进入平台</span>
                                </div>
                            </a>
                        </li>
                        <li>
                            <a href="${_baseurl}/comm/loginskip?type=90" target="_blank" class="clearfix">
                                <img src="${_baseurl}/res/images/index/hebei/3.png" alt="">
                                <div class="box">
                                    <p>集采系统</p>
                                    <span>进入平台</span>
                                </div>
                            </a>
                        </li>
                        <li>
                            <a href="${_baseurl}/comm/loginskip?type=3&toPng=caigou" target="_blank" class="clearfix">
                                <a href="${_baseurl}/comm/loginskip?type=3" target="_blank" class="clearfix">
                                    <img src="${_baseurl}/res/images/index/hebei/44.png" alt="">
                                    <div class="box">
                                        <p>交易系统</p>
                                        <span>进入平台</span>
                                    </div>
                                </a>
                        </li>
                        <li>
                            <div class="clearfix link">
                                <div href="javascript:alert('正在建设中...');" target="_blank" class="clearfix">
                                    <img src="${_baseurl}/res/images/index/hebei/55.png" alt="">
                                    <div class="box">
                                        <p>结算系统</p>
                                        <span>进入平台</span>
                                    </div>
                                    <div class="link-box">
                                        <section>
                                            <a href="#">
                                                <p>省结算系统</p>
                                            </a>
                                            <a href="#">
                                                <p>衡水专区</p>
                                            </a>
                                        </section>
                                    </div>
                                </div>
                        </li>
                        <li>
                            <div target="_blank" class="clearfix link">
                                <a target="_blank" class="clearfix">
                                    <img src="${_baseurl}/res/images/index/hebei/6.png" alt="">
                                    <div class="box">
                                        <p>监管系统</p>
                                        <span>进入平台</span>
                                    </div>
                                </a>
                                <div class="link-box">
                                    <section>
                                        <a href="#">
                                            <p>省监管系统</p>
                                        </a>
                                        <a href="#">
                                            <p>衡水专区</p>
                                        </a>
                                    </section>
                                </div>
                            </div>
                        </li>
                    </ul>
                </div>
            </div>
        </div>
        <input id="baseUrl" value="${_baseurl}" type="hidden">

        <div class="notice_dia" id="notice_dia">
            <div class="notice_title" id="title">

            </div>
            <div class="notice_tip">
                发布时间：<span id="time"></span> <span id="name"></span>
            </div>
            <div class="notice_con" id="content">
            </div>
        </div>

        <div class="footer">
            <p>
                管理单位： 河北省医疗保障局 <em>|</em> 承建单位： 河北省医用药品器械集中采购中心 <em>|</em> 技术支持： 厦门海西医药交易中心有限公司
            </p>
            <#--<p>
                Copyright &copy;2019 <a href="http://beian.miit.gov.cn" target="_blank">闽ICP备14009242号</a>
                </p>-->
        </div>
        <div class="shadow"></div>
        <div class="contact-img">
            <img src="${_baseurl}/res/images/index/lianxiwm.jpg" alt="">
        </div>
    </div>

    <script src="js/jquery.min.js"></script>
    <script type="text/javascript" src="js/layer.js"></script>
    <script>
        var _baseUrl;
        var _notices_list;
        var _notices_index;
        $(function () {
            bindEvent();
            $("#notice_dia").hide();
            $("#notice").hide();
            _baseUrl = $("#baseUrl").val();

            $.get(_baseUrl + "/centralNoticeDxAction/home_findNotices", function (data) {
                data = eval("(" + data + ")");
                var notices = data.notices
                _notices_list = notices;
                console.debug(notices)
                if (notices && notices.length > 0) {
                    var htm = '';
                    for (var i = 0; i < notices.length; i++) {
                        htm += "<li>";
                        htm += '<p data-id="' + notices[i].id + '" data-index="' + i + '">' + notices[i].noticeTitle + '</p>';
                        htm += '<span>' + notices[i].noticeTime + '</span></li>';
                    }
                    $("#noticeUl").append(htm);
                    $("#notice").show();
                }
            });
        });
        function openNotices(noticeFile, noticeId) {
            $.get(_baseUrl + "/centralNoticeDxAction/home_getFileUrl", { fileId: noticeFile, noticeId: noticeId }, function (data) {
                data = eval("(" + data + ")");
                window.open(data.url);
            })
        }

        function readNotice(noticeId) {
            $.get(_baseUrl + "/centralNoticeDxAction/home_notice_read", { noticeId: noticeId }, function (data) { })
        }
        function bindEvent() {
            $("#notice_close").click(function () {
                $("#notice").fadeOut();
            })
            $("#notice").on("click", ".l_notice_con li p", function () {
                var index = $(this).attr('data-index');
                _notices_index = index;
                $("#title").html(_notices_list[index].noticeTitle)
                $("#time").html(_notices_list[index].noticeTime)
                $("#name").html(_notices_list[index].orgInfoName)
                $("#content").html(_notices_list[index].noticeContent)
                readNotice(_notices_list[index].id);
                layer.open({
                    type: 1,
                    title: "公告详情",
                    area: ["80%", "80%"],
                    btn: ["下载附件", "取消"],
                    btn1: function () {
                        if (!_notices_list[_notices_index].noticeFile) {
                            layer.alert("该公告暂无附件");
                            return;
                        }
                        openNotices(_notices_list[_notices_index].noticeFile, _notices_list[_notices_index].id);
                    },
                    fixed: false, //不固定
                    maxmin: true,
                    content: $('#notice_dia')
                });
            })
        }
    </script>

</body>

</html>